/****************************************************************************
** Meta object code from reading C++ file 'ptitlebar.h'
**
** Created: Sun Mar 19 18:48:10 2006
**      by: The Qt Meta Object Compiler version 59 (Qt 4.1.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../ptitlebar.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'ptitlebar.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59
#error "This file was generated using the moc from 4.1.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

static const uint qt_meta_data_PTitleBar[] = {

 // content:
       1,       // revision
       0,       // classname
       0,    0, // classinfo
      15,   10, // methods
       5,   85, // properties
       0,    0, // enums/sets

 // signals: signature, parameters, type, tag, flags
      11,   10,   10,   10, 0x05,
      26,   10,   10,   10, 0x05,
      38,   10,   10,   10, 0x05,
      52,   10,   10,   10, 0x05,

 // slots: signature, parameters, type, tag, flags
      80,   67,   10,   10, 0x0a,
     118,  111,   10,   10, 0x2a,
     145,   67,   10,   10, 0x0a,
     176,  111,   10,   10, 0x2a,
     203,   67,   10,   10, 0x0a,
     231,  111,   10,   10, 0x2a,
     255,  111,   10,   10, 0x0a,
     285,  279,   10,   10, 0x0a,
     309,   10,   10,   10, 0x0a,
     325,   10,   10,   10, 0x0a,
     339,   10,   10,   10, 0x0a,

 // properties: name, type, flags
     364,  356, 0x41095003,
     374,  356, 0x41095003,
     384,  356, 0x41095103,
     396,  356, 0x41095103,
     416,  408, 0x0a095103,

       0        // eod
};

static const char qt_meta_stringdata_PTitleBar[] = {
    "PTitleBar\0\0sig_minimize()\0sig_close()\0sig_restore()\0sig_maximize()\0"
    "pixmap,state\0setMinimizePixmap(QPixmap,int)\0pixmap\0"
    "setMinimizePixmap(QPixmap)\0setMaximizePixmap(QPixmap,int)\0"
    "setMaximizePixmap(QPixmap)\0setClosePixmap(QPixmap,int)\0"
    "setClosePixmap(QPixmap)\0setTitlePixmap(QPixmap)\0title\0"
    "setTitleString(QString)\0restoreParent()\0closeParent()\0"
    "minimizeParent()\0QPixmap\0minPixmap\0maxPixmap\0closePixmap\0"
    "titlePixmap\0QString\0titleString\0"
};

const QMetaObject PTitleBar::staticMetaObject = {
    { &QFrame::staticMetaObject, qt_meta_stringdata_PTitleBar,
      qt_meta_data_PTitleBar, 0 }
};

const QMetaObject *PTitleBar::metaObject() const
{
    return &staticMetaObject;
}

void *PTitleBar::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_PTitleBar))
	return static_cast<void*>(const_cast<PTitleBar*>(this));
    return QFrame::qt_metacast(_clname);
}

int PTitleBar::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrame::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: sig_minimize(); break;
        case 1: sig_close(); break;
        case 2: sig_restore(); break;
        case 3: sig_maximize(); break;
        case 4: setMinimizePixmap(*reinterpret_cast< QPixmap*>(_a[1]),*reinterpret_cast< int*>(_a[2])); break;
        case 5: setMinimizePixmap(*reinterpret_cast< QPixmap*>(_a[1])); break;
        case 6: setMaximizePixmap(*reinterpret_cast< QPixmap*>(_a[1]),*reinterpret_cast< int*>(_a[2])); break;
        case 7: setMaximizePixmap(*reinterpret_cast< QPixmap*>(_a[1])); break;
        case 8: setClosePixmap(*reinterpret_cast< QPixmap*>(_a[1]),*reinterpret_cast< int*>(_a[2])); break;
        case 9: setClosePixmap(*reinterpret_cast< QPixmap*>(_a[1])); break;
        case 10: setTitlePixmap(*reinterpret_cast< QPixmap*>(_a[1])); break;
        case 11: setTitleString(*reinterpret_cast< QString*>(_a[1])); break;
        case 12: restoreParent(); break;
        case 13: closeParent(); break;
        case 14: minimizeParent(); break;
        }
        _id -= 15;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QPixmap*>(_v) = getMinimizePixmap(); break;
        case 1: *reinterpret_cast< QPixmap*>(_v) = getMaximizePixmap(); break;
        case 2: *reinterpret_cast< QPixmap*>(_v) = getClosePixmap(); break;
        case 3: *reinterpret_cast< QPixmap*>(_v) = getTitlePixmap(); break;
        case 4: *reinterpret_cast< QString*>(_v) = getTitleString(); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setMinimizePixmap(*reinterpret_cast< QPixmap*>(_v)); break;
        case 1: setMaximizePixmap(*reinterpret_cast< QPixmap*>(_v)); break;
        case 2: setClosePixmap(*reinterpret_cast< QPixmap*>(_v)); break;
        case 3: setTitlePixmap(*reinterpret_cast< QPixmap*>(_v)); break;
        case 4: setTitleString(*reinterpret_cast< QString*>(_v)); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void PTitleBar::sig_minimize()
{
    QMetaObject::activate(this, &staticMetaObject, 0, 0);
}

// SIGNAL 1
void PTitleBar::sig_close()
{
    QMetaObject::activate(this, &staticMetaObject, 1, 0);
}

// SIGNAL 2
void PTitleBar::sig_restore()
{
    QMetaObject::activate(this, &staticMetaObject, 2, 0);
}

// SIGNAL 3
void PTitleBar::sig_maximize()
{
    QMetaObject::activate(this, &staticMetaObject, 3, 0);
}
